<template>
    <div>
        <!-- 基础用法 -->
        <Table :columns="columns1" :data="data1"></Table>
        <!-- 斑马纹 -->
        <Table stripe :columns="columns1" :data="data1"></Table>
        <!-- 带边框 -->
        <Table border :columns="columns1" :data="data1"></Table>
    </div>
</template>

<script>
    export default {
        data () {
            return {
                columns1: [
                    {
                        title: '姓名',
                        key: 'name'
                    },
                    {
                        title: '年龄',
                        key: 'age'
                    },
                    {
                        title: '地址',
                        key: 'address'
                    },
                    {
                        title: '日期',
                        key: 'date'
                    }
                ],
                data1: [
                    {
                        name: '大象',
                        age: 18,
                        address: '贵州省贵阳市',
                        date: '2016-10-03'
                    },
                    {
                        name: '刘世奇',
                        age: 24,
                        address: '黑龙江省大庆市',
                        date: '2016-10-01'
                    },
                    {
                        name: '孙聪慧',
                        age: 21,
                        address: '陕西省渭南市白水县',
                        date: '2016-10-02'
                    },
                    {
                        name: '崔子轩',
                        age: 20,
                        address: '河北省承德市丰宁满族自治县',
                        date: '2016-10-04'
                    }
                ]
            }
        }
    }
</script>

<style scoped>

</style>